Telegram Group & Telegram Channel
#معلومة سريعة

عندما تقوم بمقارنة النصوص string في السي شارب فإن عملية المقارنة تكون حساسة لحالة الاحرف حتى وان كنت تقوم بمقارنة متغيرين لهما نفس الكلمة مع اختلاف في حالة الحروف سوف تكون نتيجة المقارنة false

مثلاً

string a="abc";
string b="ABC";

if(a==b)
print("true");

else
print("false");

حتى لو استخدمت الطريقة التالية للمقارنة
if(a.Equals(b))

في كلا الطريقتين لن يتحقق الشرط وسيطبع false

لاكن اذا اردت المقارنة بغض النظر عن حالة الاحرف نستخدم معداد
StringComparison

ستكون عملية المقارنة كما يلي

if(a.Equals(b,StringComparison.OrdinalIgnoreCase))



tg-me.com/CsharpWindowsForm/447
Create:
Last Update:

#معلومة سريعة

عندما تقوم بمقارنة النصوص string في السي شارب فإن عملية المقارنة تكون حساسة لحالة الاحرف حتى وان كنت تقوم بمقارنة متغيرين لهما نفس الكلمة مع اختلاف في حالة الحروف سوف تكون نتيجة المقارنة false

مثلاً

string a="abc";
string b="ABC";

if(a==b)
print("true");

else
print("false");

حتى لو استخدمت الطريقة التالية للمقارنة
if(a.Equals(b))

في كلا الطريقتين لن يتحقق الشرط وسيطبع false

لاكن اذا اردت المقارنة بغض النظر عن حالة الاحرف نستخدم معداد
StringComparison

ستكون عملية المقارنة كما يلي

if(a.Equals(b,StringComparison.OrdinalIgnoreCase))

BY برمجة تطبيقات الويندوز C# Programming


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/CsharpWindowsForm/447

View MORE
Open in Telegram


برمجة تطبيقات الويندوز C Programming Telegram | DID YOU KNOW?

Date: |

To pay the bills, Mr. Durov is issuing investors $1 billion to $1.5 billion of company debt, with the promise of discounted equity if the company eventually goes public, the people briefed on the plans said. He has also announced plans to start selling ads in public Telegram channels as soon as later this year, as well as offering other premium services for businesses and users.

The S&P 500 slumped 1.8% on Monday and Tuesday, thanks to China Evergrande, the Chinese property company that looks like it is ready to default on its more-than $300 billion in debt. Cries of the next Lehman Brothers—or maybe the next Silverado?—echoed through the canyons of Wall Street as investors prepared for the worst.

برمجة تطبيقات الويندوز C Programming from ar


Telegram برمجة تطبيقات الويندوز C# Programming
FROM USA